.client-container{
    height: 100%;
    display: flex;
    /* 水平居中 */
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
}

.main{
    height: 740px;
    width: 1000px;
    background-color:rgb(238, 238, 238);
    border-radius: 5px;

    display: flex;
    z-index: 2;

}

.main .left{
    width: 280px;
    height: 100%;
    background-color:rgb(45, 50, 56);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.main .right{
    width: 720px;
    height: 100%;

    padding: 0 20px;
    /* 调整z轴位置，重合的div元素在上面 */
}

.cover{
    height: 100%;
    width: 100%;
    background-image:url(../images/3.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    /* 需要让.cover和.main重叠，需要给cover加定位 */
    /* 不写坐标可以默认浏览器窗口左上角 */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    /* 滤镜效果，可以让背景图便朦胧 */
    /* 添加越大就越模糊 */
    filter: blur(20px);
}

.main .left .user{
    height: 80px;
    line-height: 80px;
    font-size: 20px;
    color: white;
    padding: 0 20px;
}

.main .left .search{
    height: 40px;
    padding: 0 20px;


    display: flex;
    justify-content: center;
    align-items: center;
}

.main .left .search input{
    height: 32px;
    width: 200px;
    line-height: 32px;
    font-size: 14px;
    color: white;
    background-color: rgb(40, 40, 40);
    

    /* 去除边框和轮框线 */
    border: none;
    outline:none;

    /* 文字和左侧有编剧 */
    padding-left: 10px;
    border-radius: 5px 0 0 5px;
}

.main .left .search button{
    height: 32px;
    width: 32px;
    border: none;
    outline: none;
    
    background-color: rgb(40, 40, 40);

    border-radius: 0 5px 5px 0;
    background-image: url("../images/搜索.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main .left .search button:active{
    background-color: gray;
}

.main .left .tab{
    height: 50px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

.main .left .tab .tab-session{
    height: 100%;
    width: 50%;
    background-image: url("../images/对话.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center center;
}

.main .left .tab .tab-friend{
    height: 100%;
    width: 50%;
    background-image: url("../images/用户（未选中）.png");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center center;
}

.main .left .list{
    /* height=740-80-40-50=570 */
    height: 570px;

    /* 如果里面内容太多，自动提供一个滚动条 */
    overflow: auto;
}

.main .left .list li{
    height: 60px;
    padding: 10px 20px;
    color: white;
    border-top: 1px solid black;

}

/* 这个样式是给会话列表使用的 */
.main .left .list li h3,
.main .left .list li p{
    height: 20px;
    font-size: 14px;
    line-height: 20px;

}

.main .left .list li:active{
    background-color: gray;
}

/* 这个样式是给好友列表使用的 */
.main .left .list li h4{
    height: 40px;
    line-height: 40px;
    font-size: 20px;
}

/* 应用了这个css类就会被隐藏 */
.hide{
    display: none;
}

/* 隐藏滚动条 */
::-webkit-scrollbar{
    display: none;
}

.main .right .title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 550px;

    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    /* 内容太多, 自动进行滚动 */
    overflow: auto;
}

.main .right .message-show .message {
    margin-top: 10px;
    /* 宽度默认 100%, 高度的话不显式设定, 后续一条消息的内容有多有少 */
    display: flex;
}

/* 这个样式让子元素靠左 */
.main .right .message-show .message-left {
    justify-content: flex-start;
}

/* 这个样式让子元素靠右 */
.main .right .message-show .message-right {
    justify-content: flex-end;
}

.main .right .message-show .message .box {
    /* box 凸显出左右这样的效果, 宽度不能是 100% */
    /* width: 500px; */
    width: auto;
}

.main .right .message-show .message .box h4 {
    /* 去掉加粗效果 */
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
}

.main .right .message-show .message .box p {
    /* padding: 20px; */
    padding: 10px 20px;
    border-radius: 10px;
}

.main .right .message-show .message-left .box p {
    background-color: #fff;
}

.main .right .message-show .message-right .box p {
    background-color: rgb(37, 129, 37);
}

.main .right .message-input{
    display: block;
    width: 100%;
    height: 100px;
    border: none;
    outline: none;

    margin-top: 2px;
    background-color:rgb(238, 238, 238);
    padding: 10px;
    /* 禁止大小进行调整 */
    resize: none;
}

.main .right .ctrl{
    display: flex;
    height: 35px;
    justify-content: flex-end;    
}

.main .right .ctrl button{
    height: 35px;
    width: 100px;
    background-color: #fff;
    border: 1 solid #ccc;
    border-radius: 5px;
}

.main .right .ctrl button:active{
    background-color: gray;
    color: white;
}

.main .left .list .selected {
    background-color: rgb(46, 54, 65);
}
